package com.fastloan.mgt.invest.service;


import com.fastloan.mgt.invest.model.InvestCustomer;
import com.fastloan.mgt.invest.model.InvestValue;
import com.fastloan.mgt.invest.model.vo.WorldCusVo;
import com.kawins.base.BaseService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @author rankai
 *         createTime 2017-08-2017/8/8 10:29
 */
public interface InvestValueService extends BaseService<InvestValue> {

    /**
     * 增加值
     *
     * @param request        HttpServletRequest
     * @param investCustomer 客户信息Bean
     * @param managerId      客户经理ID
     * @param tempId         模版ID
     * @param typeId         模版类型ID
     * @param subjectId
     * @return
     */
    Map<String, Object> insertValue(HttpServletRequest request, InvestCustomer investCustomer, String managerId, String tempId, String typeId, String subjectId);

    /**
     * 根据用户值Id导出world
     *
     * @param cusValueId 根据用户值Id
     * @param subjectId  项目Id
     * @param response   HttpServletResponse
     * @param request    HttpServletRequest
     * @return
     */
    void worldBySubject(String cusValueId, String subjectId, HttpServletRequest request, HttpServletResponse response);

    /**
     * 页面预览客户提交的调查问卷
     *
     * @param cusValueId 客户问卷ID
     * @return
     */
    WorldCusVo showCusValue(String cusValueId);
}
